package com.xoa.model.financialManage.charge;

import com.alibaba.fastjson.annotation.JSONField;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class ChargeSetting {
    //主键
    private Integer settingId;
    //ids串
    private String settingIds;

    //设置对象，1公司，2部门，3用户',
    private String setType;

    //预警方式（1年，2季度，3月，4自定义周期）',
    private String alertMethod;

    //预设金额类型（1总值，2按科目设置）',
    private String alertType;

    //预警金额',
    private BigDecimal alertValue;

    //预警周期 开始日期',
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date alertDataStart;

    //预警周期 结束日期',
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date alertDataEnd;

    //报销用户ID',
    private String userId;

   //'报销用户名称',
    private String userName;

    //报销部门ID',
    private String deptId;

    //报销部门名称',
    private String deptName;

    //报销角色
    private String privId;

    //报销角色名称
    private String privName;

    //创建日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

    //按各科
    private String strJson;

    //用来返回必要字段
    private List tlist;

    public List getTlist() {
        return tlist;
    }

    public void setTlist(List tlist) {
        this.tlist = tlist;
    }

    public String getStrJson() {
        return strJson;
    }

    public void setStrJson(String strJson) {
        this.strJson = strJson;
    }

    public String getSettingIds() {
        return settingIds;
    }

    public void setSettingIds(String settingIds) {
        this.settingIds = settingIds;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.SETTING_ID
     *
     * @return the value of charge_setting.SETTING_ID
     *
     * @mbggenerated
     */
    public Integer getSettingId() {
        return settingId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.SETTING_ID
     *
     * @param settingId the value for charge_setting.SETTING_ID
     *
     * @mbggenerated
     */
    public void setSettingId(Integer settingId) {
        this.settingId = settingId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.SET_TYPE
     *
     * @return the value of charge_setting.SET_TYPE
     *
     * @mbggenerated
     */
    public String getSetType() {
        return setType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.SET_TYPE
     *
     * @param setType the value for charge_setting.SET_TYPE
     *
     * @mbggenerated
     */
    public void setSetType(String setType) {
        this.setType = setType == null ? null : setType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.ALERT_METHOD
     *
     * @return the value of charge_setting.ALERT_METHOD
     *
     * @mbggenerated
     */
    public String getAlertMethod() {
        return alertMethod;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.ALERT_METHOD
     *
     * @param alertMethod the value for charge_setting.ALERT_METHOD
     *
     * @mbggenerated
     */
    public void setAlertMethod(String alertMethod) {
        this.alertMethod = alertMethod == null ? null : alertMethod.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.ALERT_TYPE
     *
     * @return the value of charge_setting.ALERT_TYPE
     *
     * @mbggenerated
     */
    public String getAlertType() {
        return alertType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.ALERT_TYPE
     *
     * @param alertType the value for charge_setting.ALERT_TYPE
     *
     * @mbggenerated
     */
    public void setAlertType(String alertType) {
        this.alertType = alertType == null ? null : alertType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.ALERT_VALUE
     *
     * @return the value of charge_setting.ALERT_VALUE
     *
     * @mbggenerated
     */
    public BigDecimal getAlertValue() {
        return alertValue;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.ALERT_VALUE
     *
     * @param alertValue the value for charge_setting.ALERT_VALUE
     *
     * @mbggenerated
     */
    public void setAlertValue(BigDecimal alertValue) {
        this.alertValue = alertValue;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.ALERT_DATA_START
     *
     * @return the value of charge_setting.ALERT_DATA_START
     *
     * @mbggenerated
     */
    public Date getAlertDataStart() {
        return alertDataStart;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.ALERT_DATA_START
     *
     * @param alertDataStart the value for charge_setting.ALERT_DATA_START
     *
     * @mbggenerated
     */
    public void setAlertDataStart(Date alertDataStart) {
        this.alertDataStart = alertDataStart;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.ALERT_DATA_END
     *
     * @return the value of charge_setting.ALERT_DATA_END
     *
     * @mbggenerated
     */
    public Date getAlertDataEnd() {
        return alertDataEnd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.ALERT_DATA_END
     *
     * @param alertDataEnd the value for charge_setting.ALERT_DATA_END
     *
     * @mbggenerated
     */
    public void setAlertDataEnd(Date alertDataEnd) {
        this.alertDataEnd = alertDataEnd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.USER_ID
     *
     * @return the value of charge_setting.USER_ID
     *
     * @mbggenerated
     */
    public String getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.USER_ID
     *
     * @param userId the value for charge_setting.USER_ID
     *
     * @mbggenerated
     */
    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.USER_NAME
     *
     * @return the value of charge_setting.USER_NAME
     *
     * @mbggenerated
     */
    public String getUserName() {
        return userName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.USER_NAME
     *
     * @param userName the value for charge_setting.USER_NAME
     *
     * @mbggenerated
     */
    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.DEPT_NAME
     *
     * @return the value of charge_setting.DEPT_NAME
     *
     * @mbggenerated
     */
    public String getDeptName() {
        return deptName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.DEPT_NAME
     *
     * @param deptName the value for charge_setting.DEPT_NAME
     *
     * @mbggenerated
     */
    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }

    public String getPrivId() {
        return privId;
    }

    public void setPrivId(String privId) {
        this.privId = privId;
    }

    public String getPrivName() {
        return privName;
    }

    public void setPrivName(String privName) {
        this.privName = privName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column charge_setting.CREATED_TIME
     *
     * @return the value of charge_setting.CREATED_TIME
     *
     * @mbggenerated
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column charge_setting.CREATED_TIME
     *
     * @param createdTime the value for charge_setting.CREATED_TIME
     *
     * @mbggenerated
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }
}